<%--
  Created by IntelliJ IDEA.
  User: 4323434
  Date: 2024/11/24
  Time: 11:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <script type="text/javascript">
        function dl(){
            //得到这两个文本框的内容
            account = document.dlForm.account.value;
            password = document.dlForm.password.value;
            if(account!="jk174"){
                alert("账号不正确");
                document.dlForm.account.focus();//聚焦
                return;
            }
            else if(password!="146908"){
                alert("密码不正确");
                document.dlForm.password.focus();
                return;
            }
            document.dlForm.submit();
        }
    </script>

</head>
<body>

<form name="dlForm" action="dl_result.jsp" method="post">
    请您输入账号：<input name="account" type="text"><BR>
    请您输入密码：<input name="password" type="password"><BR>
    <input type="button"  onclick="dl()"  value="登录">
    <input type="reset" value="取消">
</form>

</body>
</html>
